<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: xiaofeng
  Date: 2025/5/19
  Time: 21:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>显示所有妖怪</h1>
<table border="1px" width="400px" bgcolor="#f5f5dc">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>skill</td>
    </tr>
    <c:forEach items="${requestScope.monsters}" var="monster">
        <c:if test="${monster.id > 200}">
        <tr>
            <td>${monster.id}</td>
            <td>${monster.name}</td>
            <td>${monster.skill}</td>
        </tr>
        </c:if>
    </c:forEach>
</table>
</body>
</html>
